import request from '../utils/request';

export const tryLogin = (data) => {
    return request({
        url: '/api/user/tryLogin',
        method: 'post',
        data: data
    });
};

export const checkToken = () => {
    return request({
        url: '/api/user/checkToken',
        method: 'post',
        data: {}
    });
};

export const logout = () => {
    return request({
        url: '/api/user/logout',
        method: 'get',
        data: {}
    });
};
